import { Input } from 'antd';
import type { InputProps } from 'antd';
import type { FC } from 'react';
import styles from './index.less';
import classnames from 'classnames';
interface Props extends InputProps {
  prefixText: string;
  containerClassName?: string;
}
const Index: FC<Props> = ({ prefixText, containerClassName, placeholder = '请输入', ...props }) => {
  return (
    <div className={classnames(styles.container, containerClassName)}>
      <span>{prefixText}</span>
      <Input placeholder={placeholder} type="number" {...props} />
    </div>
  );
};
export default Index;
